using System;
using System.Windows.Forms;
using SqlRunner;
using SQLRunnerLib.Util;

namespace SQLRunner
{
	/// <summary>
	/// Entry point for the SQL Server Runnner application
	/// </summary>
	public class MainClass
	{
		private MainClass(){}
		[STAThread]
		static void Main(string[] args) 
		{
			FormMainController controller = new FormMainController();
			if (args.Length > 0) 
			{
				LineParser _parser = new LineParser(args);
				if (_parser.IsProjectAvailable)
				{
					controller.Project = _parser.Project;
					controller.RefreshProject();
				}
			}
			Application.Run(controller.FormInstance);
		}
	}
}
